import request from '@/utils/request.js'

export function login(data) {
  return request({
    url: '/dyzx/login',
    method: 'post',
    data
  })
}

export function getUserInfo(data) {
  return request({
    url: '/dyzx/info',
    method: 'post',
    data
  })
}

export function getTmList(data) {
  return request({
    url: '/dyzx/timuList',
    method: 'post',
    data
  })
}

export function getTimuCommonList(data) {
  return request({
    url: '/dyzx/getTimuCommonList',
    method: 'post',
    data
  })
}

/**
 * 获得题目详情
 */
export function getTimuDetail(data) {
  return request({
    url: '/dyzx/getCurConfigInfo',
    method: 'post',
    data
  })
}

/**
 * 提交答案
 */
export function submitAnswer(data) {
  return request({
    url: '/dyzx/submitAnswer',
    method: 'post',
    data
  })
}
